package com.ly.okdown;

import android.content.Context;

/**
 * Created by liying on 2017/10/9.
 * 统一构造类
 */

class OkDownBuilder {
    private String url;    //下载链接
    private String path;   //下载路径
    private String name;   //文件名
    private String childTaskCount;//单个任务采用几个线程下载

    private Context mContext;
    public OkDownBuilder(Context context) {
        this.mContext= context.getApplicationContext();
    }

    private OkDownBuilder url(String url) {
        this.url = url;
        return this;
    }

    private OkDownBuilder path(String path) {
        this.path = path;
        return this;
    }

    private OkDownBuilder name(String name) {
        this.name = name;
        return this;
    }
    private OkDownBuilder childTaskCount(String childTaskCount) {
        this.childTaskCount = childTaskCount;
        return this;
    }
}
